const app = getApp()
import call from './request'


// 获取列表
function getAllArticleList(data,success, fail, complete){
  const that = this
  const options = {
    url: '/kapi/knowledge/api/article/list',
    data: data,
    method: 'GET'
  }
  call.request(options, success, fail, complete)
}

// 获取文章详情
function getArticleDetail(data,success, fail, complete){
  const that = this
  const options = {
    url: '/kapi/knowledge/api/article/detail/out',
    data: data,
    method: 'GET'
  }
  call.request(options, success, fail, complete)
}

// 获取世界杯安排详情
function getWorldCup(success, fail, complete){
  const that = this
  const options = {
    url: '/kapi/knowledge/api/worldcup/list',
    method: 'GET'
  }
  call.request(options, success, fail, complete)
}


const Api={
  GetAllArticleList:getAllArticleList,
  GetArticleDetail:getArticleDetail,
  GetWorldCup:getWorldCup
}

export default Api